package com.osti.mytest;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class Settings extends Activity

{
	private Intent	m_BtnPlayerNames;
	private LinearLayout LL_Playernames;
	
	protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_settings);
        
        // initialize class members
        m_BtnPlayerNames = new Intent(this, Settings_Playernames.class);
        
        LL_Playernames = (LinearLayout) findViewById(R.id.settings_playernames);
  
        LL_Playernames.setOnClickListener(new View.OnClickListener()
        {			
			@Override
			public void onClick(final View view) {
		        
				//Color for Click
				view.setBackgroundColor(Color.GRAY); // Choose whichever color

		        new Handler().postDelayed(new Runnable() {

		        public void run() 
		        {
		        	view.setBackgroundResource(R.drawable.bordermatches_middle);
		        	startActivity(m_BtnPlayerNames);
		        }
		            
			        }, 100L);    // Change this value to whatever is suitable
			    }
		});
        
        
       
    }

}
